// 用户信息处理工具

import { token_key } from "@/constants"

// 获取token
export const getToken = () => {
    return localStorage.getItem(token_key) || ''
}
// 持久化token
export const setToken = (token: string) => {
    localStorage.setItem(token_key, token)
}

// 移除本地存储的token
export const removeToken = () => {
    localStorage.removeItem(token_key)
}